\documentclass[a4paper,twoside]{ctexbook}
\usepackage[xetex,colorlinks,bookmarks]{hyperref}
\usepackage{BUPTthesisBachelor}
\usepackage{listing}
%将目录颜色设置为黑色而不是红色
\hypersetup{colorlinks=false}
%前面几页不需要页眉页脚
\pagestyle{empty}
\begin{document}

\frontmatter{Roman} %开始罗马页数计数
\tableofcontents
\mainmatter	%开始阿拉伯数字计页数
%从正文开始加入页眉和页脚
\pagestyle{fancy}
%正文
\include{data/chapter1}
\include{data/chapter2}
%\include{data/chapter3}
%\include{data/chapter4}
%\include{data/chapter5}

\end{document}

